package com.elancom.rbq.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.elancom.framework.entity.AbstractEntity;

/**
 * 等级
 * 
 * @author elancom
 * 
 */
@Table(name = "HP_GRADE")
public class Grade extends AbstractEntity {

	private static final long serialVersionUID = -8942347123597432383L;

	private String name;

	private Date createTime;

	private Set<Menu> menus = new HashSet<>();

	@OneToMany
	@Column(name = "MENU_ID")
	public Set<Menu> getMenus() {
		return menus;
	}

	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}
